CREATE TRIGGER TGHD_01 ON HOADON FOR INSERT,UPDATE
AS
BEGIN
	DECLARE @TONG MONEY
	SET @TONG = (SELECT TONGTIEN FROM inserted)
	IF(@TONG < 0)
	BEGIN
		RAISERROR('KHONG DUOC PHEP NHO HON 0',16,1)
		ROLLBACK TRAN
		RETURN
	END
END